package com.request.exception.enums;

import com.rlyy.common.enums.ExceptionEnum;

/**
 * 解析请求代理方法异常
 *
 * @author yuanqinglong
 * @since 2021/10/18 14:33
 */
public enum RequestProxyParserEnum implements ExceptionEnum {

    /**
     * 缺少注解
     */
    MISSING_ANNOTATION(30000, "请求参数缺少注解"),
    NO_MATCH_PARAM_PROCESSOR(30001, "没有匹配的注解解析器"),
    REQUEST_MAPPING_MISSING(30002, "缺少API注解异常"),
    REQUEST_API_MISSING(30003, "缺少API异常"),
    ANNOTATION_TYPE_PARAM_TYPE_NO_MATCH(30004, "注解类型和参数类型不匹配"),
    ANNOTATION_PARAM_NAME_EMPTY(30005, "参数注解指定参数名称为空");

    private final String msg;
    private final Integer code;

    RequestProxyParserEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return null;
    }

    @Override
    public String getMsg() {
        return null;
    }
}
